package com.molichuxing.gateway.bff.risk.entity.response;


import com.molichuxing.framework.dto.ResponseRootDto;
import com.molichuxing.services.property.BlacklistTypeEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 
 * @author liyg
 * 2019-08-15
 * 黑名单vo
 * 
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BlacklistVo extends ResponseRootDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = " 黑名单id")
    private Integer blacklistId;

    @ApiModelProperty(value = " 姓名")
    private String name;
    
    @ApiModelProperty(value = " 用户id")
    private Integer userId;
    
    @ApiModelProperty(value = " 用户账号")
    private String userName;

    @ApiModelProperty(value = " 身份证号")
    private String idNumber;

    @ApiModelProperty(value = " 手机号")
    private String phone;

    @ApiModelProperty(value = " 加入原因")
    private String reason;

    @ApiModelProperty(value = " 加入方式(1:自动，2：手动)")
    private Integer type;

    @ApiModelProperty(value = " 操作时间")
    private String operationTime;
    
    @ApiModelProperty(value = " 拉黑方式Str")
    private String typeStr;
    
    public void setType(Integer type) {
    	this.type=type;
    	this.typeStr= type==null ? null : BlacklistTypeEnum.getName(type);
    }
    

}
